package com.javaweb.service;

import com.javaweb.model.Article;
import com.javaweb.service.dto.ArticleUpdateDto;
import com.javaweb.service.dto.PageResult;

public interface ArticleService {

    public int publishArticle(String userId, String articleId) ;
    public PageResult queryByArticleCondition(Article articleCond, Integer pageNum, Integer pageSize);
    public Article queryById(int articleId);
    public Article insertArticle(Article article);
    public int publishArticlesByBatch(String[] articleIds, String userId);
    public int updateArticle(ArticleUpdateDto articleVo);
    public int removeArticle(String articleId, String userId);
}
